<?php
    include "./base.php";
    $gid = $_POST["gid"];
    $bname = $_POST["bname"];
    $bprice = $_POST["bprice"];
    $bnumber = $_POST["bnumber"];
    $bcategory = $_POST["bcategory"];
    $sql = "update goods set bname = '$bname',bprice = '$bprice',bnumber = '$bnumber',bcategory = '$bcategory' where gid = '$gid'";
    $res = mysql_query($sql);
    print_r("修改成功！");
?>